#include "itemform.h"
#include "ui_itemform.h"

ItemForm::ItemForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::ItemForm)
{
    ui->setupUi(this);
}

ItemForm::~ItemForm()
{
    delete ui;
}

void ItemForm::setinfo(QString &titleicon, QString &cash, QString &titlename)
{
    QPixmap titlemap(titleicon);
    titlemap = titlemap.scaled(ui->piclabel->width(),ui->piclabel->height());
    ui->piclabel->setPixmap(titlemap);

    ui->cashlabel->setText(cash);

    ui->goodnamelabel->setText(titlename);
}
